package com.ljwm.seckill.dao;

import com.ljwm.seckill.entity.Seckill;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by yuzhou on 2017/8/1.
 */
public interface SeckillDao  {

  int reduceNumber(@Param("seckillId") Long seckillId, @Param("killTime") Date killTime);
  Seckill queryById(Long seckillId);
  List<Seckill> queryAll(@Param("offset") int offset, @Param("limit") int limit);
}
